package com.lheia.proxy

import us.codecraft.webmagic.proxy.Proxy

class FileProxy extends Proxy {
    /**
     * 代理使用次数
     */
    private int failCount = 0
    /**
     * @param host
     * @param port
     */
    FileProxy(String host, int port) {
        super(host, port)
    }
    FileProxy(String host, int port, String username, String password) {
        super(host, port, username, password)
    }
    /**
     * 失败计数
     * @return
     */
    def failIncrement(){
        failCount = failCount+1
    }

    def getFailCount(){
        return failCount
    }
}
